<template>
  <div class="radio">
    <img src="~assets/img/cart/tick.svg" alt="" :class="{active: isSelect}"/>
  </div>
</template>

<script>
export default {
  props: {
    isSelect: {
      type: Boolean,
      default: false
    },
  },
};
</script>

<style scoped>
.radio {
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 2px;
}

.radio img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #eee;
}

img.active {
  background-color: red;
  border: 1px solid red;
}
</style>